package com.nl.controller.web.bean;

import com.nl.controller.web.util.SetBeanUtil;

/**
 * 短信模板信息表
 */
public class SmsTemplateAttr {
    private String id; //项目编号
    private String name; //项目名称
    private String mgrType; //项目类型
    private String sendType;//发送类型 1为基础短信项目 2为5g多媒体短信
    private String cityId; //地市编号
    private String cityName;  //地市名称
    private String state;//项目状态
    private String stateName;//项目状态
    private String templateState;//模板状态，0待审核，1审核中，2审核通过，3审核不通过';
    private String templateStateName;//模板状态
    private String startDate; //发送开始时间
    private String endDate;  //发送结束时间
    private String everyDayStartTime; //每天发送开始时间
    private String everyDayEndTime;  //每天发送结束时间
    private String isLocal;   //是否发送本地用户 0 发送包括本地 1只发外地  2本地+外地;
    private String localIsCz;     //本地发送是否发送常驻人口   0为不发送，1为发送
    private String nonLocalIsCz;     //外地是否发送常驻人口   0为不发送，1为发送
    private String isThreshold;  //是否设置阀值, 0 不设置  1设置发送总量 2 发送周期 3 全设置
    private int threshold;  //总体阀值
    private int cycleThreshold; //周期阀值;
    private String cycle;   //周期, 1按年  2月 3周  4日 5 时间段
    private String realTime; //延时  0立即发送 1 5分钟 2 10分钟 3 20分钟
    private String thresholdStartTime; //发送周期范围开始时间
    private String thresholdEndTime;  //发送周期范围结束时间
    private String createTime;  //创建时间
    private String modifyTime;  //修改时间
    private String content;  //内容
    private String newContent;  //新内容
    private String countyId;  //区县编号
    private String countyName;//区县名称
    private String belong;//项目归属
    private String cityExtId;//地市+扩展码
    private String openAccount;//是否开户
	private String effectTime;  //生效时间
    private SmsRealtimeControl smsRealtimeControl;//阀值
    private String localDate; //本地保存时间
    private String nonlocalDate;//外地号码保存时间
    private String isNew; //是否为新建项目未修改的项目 1为是  0为不是
    private String isArrearage;//是否欠费 0是未欠费，1是欠费
    private String groupId;//项目分组信息
    private String groupName;//项目分组名称

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getSmsChannelNumber() {
        return smsChannelNumber;
    }

    public void setSmsChannelNumber(String smsChannelNumber) {
        this.smsChannelNumber = smsChannelNumber;
    }

    private String smsChannelNumber; //5g多媒体通道号

    public String getSendType() {
        return sendType;
    }

    public void setSendType(String sendType) {
        this.sendType = sendType;
    }

    public String getNonlocalDate() {
		return nonlocalDate;
	}

	public void setNonlocalDate(String nonlocalDate) {
		this.nonlocalDate = nonlocalDate;
	}
	private int stationNum;
    public int getStationNum() {
		return stationNum;
	}

	public void setStationNum(int stationNum) {
		this.stationNum = stationNum;
	}

    public String getContent() {
        return content;
    }
    private String isProvince;//外地发送范围，0省内  2省内+省外
    public void setContent(String content) {
        this.content = content;
    }

    public String getNewContent() {
        return newContent;
    }

    public void setNewContent(String newContent) {
        this.newContent = newContent;
    }

    public String getEffectTime() {
        return effectTime;
    }

    public void setEffectTime(String effectTime) {
        this.effectTime = effectTime;
    }
    public SmsRealtimeControl getSmsRealtimeControl() {
        return smsRealtimeControl;
    }

    public void setSmsRealtimeControl(SmsRealtimeControl smsRealtimeControl) {
        this.smsRealtimeControl = smsRealtimeControl;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return SetBeanUtil.getCityName(this.cityId);
    }

    public String getCityName2() {
        return cityName;
    }
    
    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getEveryDayStartTime() {
        return everyDayStartTime;
    }

    public void setEveryDayStartTime(String everyDayStartTime) {
        this.everyDayStartTime = everyDayStartTime;
    }

    public String getEveryDayEndTime() {
        return everyDayEndTime;
    }

    public void setEveryDayEndTime(String everyDayEndTime) {
        this.everyDayEndTime = everyDayEndTime;
    }

    public String getIsLocal() {
        return isLocal;
    }

    public void setIsLocal(String isLocal) {
        this.isLocal = isLocal;
    }

    public String getIsThreshold() {
        return isThreshold;
    }

    public void setIsThreshold(String isThreshold) {
        this.isThreshold = isThreshold;
    }

    public int getThreshold() {
        return threshold;
    }

    public void setThreshold(int threshold) {
        this.threshold = threshold;
    }

    public String getCycle() {
        return cycle;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }


    public int getCycleThreshold() {
        return cycleThreshold;
    }

    public void setCycleThreshold(int cycleThreshold) {
        this.cycleThreshold = cycleThreshold;
    }

    public String getRealTime() {
        return realTime;
    }

    public void setRealTime(String realTime) {
        this.realTime = realTime;
    }

    public String getCreateTime() {
        return SetBeanUtil.timeSubString(this.createTime);
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return SetBeanUtil.timeSubString(this.modifyTime);
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getStateName() {
        return SetBeanUtil.getMgrStatus(this.state);
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getTemplateState() {
        return templateState;
    }

    public void setTemplateState(String templateState) {
        this.templateState = templateState;
    }

    public String getTemplateStateName() {
        return SetBeanUtil.getTemplate(this.templateState);
    }

    public void setTemplateStateName(String templateStateName) {
        this.templateStateName = templateStateName;
    }

    public String getThresholdStartTime() {
        return SetBeanUtil.timeSubString(this.thresholdStartTime);
    }

    public void setThresholdStartTime(String thresholdStartTime) {
        this.thresholdStartTime = thresholdStartTime;
    }

    public String getThresholdEndTime() {
         return SetBeanUtil.timeSubString(this.thresholdEndTime);
    }

    public void setThresholdEndTime(String thresholdEndTime) {
        this.thresholdEndTime = thresholdEndTime;
    }

    public String getLocalDate() {
        return localDate;
    }

    public void setLocalDate(String localDate) {
        this.localDate = localDate;
    }

	public String getIsProvince() {
		return isProvince;
	}

	public void setIsProvince(String isProvince) {
		this.isProvince = isProvince;
	}
	
    public String getCountyId() {
		return countyId;
	}

	public void setCountyId(String countyId) {
		this.countyId = countyId;
	}
	
	public String getCountyName() {
		return countyName;
	}

	public void setCountyName(String countyName) {
		this.countyName = countyName;
	}

	public String getBelong() {
		return belong;
	}

	public void setBelong(String belong) {
		this.belong = belong;
	}
	
	public String getCityExtId() {
		return cityExtId;
	}

	public void setCityExtId(String cityExtId) {
		this.cityExtId = cityExtId;
	}

	@Override
    public String toString() {
        return "SmsTemplateAttr{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", cityId='" + cityId + '\'' +
                ", cityName='" + cityName + '\'' +
                ", state='" + state + '\'' +
                ", stateName='" + stateName + '\'' +
                ", templateState='" + templateState + '\'' +
                ", templateStateName='" + templateStateName + '\'' +
                ", startDate='" + startDate + '\'' +
                ", endDate='" + endDate + '\'' +
                ", everyDayStartTime='" + everyDayStartTime + '\'' +
                ", everyDayEndTime='" + everyDayEndTime + '\'' +
                ", isLocal='" + isLocal + '\'' +
                ", isThreshold='" + isThreshold + '\'' +
                ", threshold=" + threshold +
                ", cycleThreshold=" + cycleThreshold +
                ", cycle='" + cycle + '\'' +
                ", realTime='" + realTime + '\'' +
                ", thresholdStartTime='" + thresholdStartTime + '\'' +
                ", thresholdEndTime='" + thresholdEndTime + '\'' +
                ", createTime='" + createTime + '\'' +
                ", modifyTime='" + modifyTime + '\'' +
                ", localDate='" + localDate + '\'' +
                ", isProvince='" + isProvince + '\'' +
                ", countyId='" + countyId + '\'' +
                ", countyName='" + countyName + '\'' +
                ", belong='" + belong + '\'' +
                ", cityExtId='" + cityExtId + '\'' +
                '}';
    }

	/**
	 * @return the openAccount
	 */
	public String getOpenAccount() {
		return openAccount;
	}

	/**
	 * @param openAccount the openAccount to set
	 */
	public void setOpenAccount(String openAccount) {
		this.openAccount = openAccount;
	}

	public String getLocalIsCz() {
		return localIsCz;
	}

	public void setLocalIsCz(String localIsCz) {
		this.localIsCz = localIsCz;
	}

	public String getNonLocalIsCz() {
		return nonLocalIsCz;
	}

	public void setNonLocalIsCz(String nonLocalIsCz) {
		this.nonLocalIsCz = nonLocalIsCz;
	}

	public String getMgrType() {
		return mgrType;
	}

	public void setMgrType(String mgrType) {
		this.mgrType = mgrType;
	}

	public String getIsNew() {
		return isNew;
	}

	public void setIsNew(String isNew) {
		this.isNew = isNew;
	}

	public String getIsArrearage() {
		return isArrearage;
	}

	public void setIsArrearage(String isArrearage) {
		this.isArrearage = isArrearage;
	}

}
